'use strict';

module.exports = function collectSameElements(collectionA, ObjectB) {
  let arr = ObjectB.value;
  return collectionA.filter(function(i){
    return arr.indexOf(i)!==-1;
  });
}
